<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>授权</title>
</head>
<style>

    html {
        padding: 0;
        margin: 0;
    }

    .title {
        background-color: #E9686B;
        height: 50px;
        padding-left: 20%;
        padding-right: 20%;
        color: white;
        line-height: 50px;
        font-size: 18px;
    }

    .title-left {
        float: right;
    }

    .title-right {
        float: left;
    }

    .title-left a {
        color: white;
    }

    .container {
        clear: both;
        text-align: center;
    }

    .btn {
        width: 350px;
        height: 35px;
        line-height: 35px;
        cursor: pointer;
        margin-top: 20px;
        border-radius: 3px;
        background-color: #E9686B;
        color: white;
        border: none;
        font-size: 15px;
    }
</style>
<body style="margin: 0">
<div class="title">
    <div class="title-right">OAUTH-BOOT 授权</div>
    <div class="title-left">
        <a href="#">帮助</a>
    </div>
</div>
<div class="container">
    <form method="post" th:action="@{/oauth/authorize}">
        <input type="hidden" name="user_oauth_approval" th:value="true">
        <h3 th:text="${clientId} + ' 请求授权，该应用将获取你的以下信息'"></h3>
        <ul style="list-style-type: none">
            <li th:each="scope:${scopes}">
                <div class="form-group">
                    <a th:text="${scope}"></a>:
                    <input type="hidden" th:name="'scope.'+${scope}" value="true">
                </div>
            </li>
        </ul>
        <h4 th:text="授权后表明你已同意"></h4><h4 style="color: #E9686B">OAUTH-BOOT 服务协议</h4>
        <button name="authorize" th:value="Authorize" class="btn" th:type="submit"> 同意/授权</button>
    </form>
</div>
</body>
</html>